﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PhotoAE.ascx.cs" Inherits="Admin_Module_Photo_Controls_PhotoAE" %>
<style type="text/css">
	</style>
<div id="tabs">
	<ul>
		<li><a href="#tabs-1">Thêm sửa hình ảnh</a></li>
	</ul>
	<div id="tabs-1">
		<div style="text-align: right;">
			<a href='/Admin/Module/Photo/PhotoList.aspx?AlbumId=<%=AlbumId %>'>
				<input type="button" class="ui-widget-content ui-corner-all textfield cursor" value="Danh sách hình" /></a>
		</div>
		<table class="gridadd">
			<tr>
				<td>
					Tên hình
				</td>
				<td>
					<asp:TextBox ID="txtName" runat="server" CssClass="ui-widget-content ui-corner-all textfield"></asp:TextBox>
					<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
						ControlToValidate="txtName"></asp:RequiredFieldValidator>
				</td>
			</tr>
			<%--<tr>
                <td>
                    Trạng thái
                </td>
                <td>
                    <asp:CheckBox ID="cbIsVisible" runat="server" Checked="true" />
                </td>
            </tr>--%>
			<tr>
				<td>
					Hình ảnh:
				</td>
				<td valign="top">
					<asp:FileUpload ID="FileUpload1" runat="server" CssClass="ui-widget-content ui-corner-all textfield" />&nbsp;&nbsp;&nbsp;<asp:Image
						ID="Image1" runat="server" Width="50px" Height="50px" CssClass="ui-widget-content ui-corner-all textfield" />
				</td>
			</tr>
			<%if (!PhotoId.Equals(Guid.Empty))
	 {%>
			<tr>
				<td>
					Người tạo
				</td>
				<td>
					<asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
				</td>
			</tr>
			<tr>
				<td>
					Ngày tạo
				</td>
				<td>
					<asp:Label ID="lblCreatedDate" runat="server"></asp:Label>
				</td>
			</tr>
			<tr>
				<td>
					Người sửa
				</td>
				<td>
					<asp:Label ID="lblUpdatedBy" runat="server"></asp:Label>
				</td>
			</tr>
			<tr>
				<td>
					Người sửa
				</td>
				<td>
					<asp:Label ID="lblUpdatedDate" runat="server"></asp:Label>
				</td>
			</tr>
			<%} %>
			<tr>
				<td>
					&nbsp;
				</td>
				<td>
					<asp:Button ID="btnUpdate" runat="server" Width="100px" Text="Thêm" CssClass="ui-widget-content ui-corner-all textfield"
						OnClick="btnUpdate_Click" />
					<asp:Label ID="lblresult" runat="server" ForeColor="Red" ></asp:Label>
				</td>
			</tr>
		</table>
	</div>
</div>
